package kuang.juc.function;

import java.util.function.Function;


/**
 * 函数式接口，有输入有返回
 */
public class FunctionDemo {
    public static void main(String[] args) {
        //Function<String, String> function = new Function<>() {
        //    @Override
        //    public String apply(String s) {
        //        return s;
        //    }
        //};
        Function<String, String> function=(str)->{return str;};

        System.out.println(function.apply("123"));
    }
}
